<?php
/* @var $this SuratKeluarTemplateController */
/* @var $model SuratKeluarTemplate */

$this->breadcrumbs=array(
	'Template Surat Keluar'
);


Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('surat-keluar-template-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>

<?php $this->widget('ext.widgets.grid.AxGridView', array(
	'id'=>'surat-keluar-template-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'deskripsi',
		'judul_surat',
		array(
			'class'=>'CButtonColumn',
                        'headerHtmlOptions' => array('class' => 'lastcolumn'),
                        'htmlOptions' => array('class' => 'lastcolumn')
		),
	),
)); ?>